package cc.imos.config;

import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

/**
 * <pre>
 * 之定义配置文件读取类
 * Created by asher on 2017/3/8.
 * </pre>
 */
//@Component
public class BasicConfigurer extends PropertyPlaceholderConfigurer {

    @Override
    protected String convertPropertyValue(String originalValue) {
        if(StringUtils.hasText(originalValue) && originalValue.equals("万惠充")) {
            originalValue = "重写 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 万惠充";
        }
        return super.convertPropertyValue(originalValue);
    }

}
